<?php

//require_once ('library/Zend/View/Helper/Abstract.php');

class Zend_View_Helper_RestrainName extends Zend_View_Helper_Abstract {
	public function restrainName($name,$num=10){
		if(mb_strlen($name,'utf-8')<=$num){
			return $name;
		}else{
			return mb_substr($name, 0, $num-1,'utf-8')."&hellip;";
		}
		
	}
}

?>